package com.backstage.service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.backstage.entity.po.SysUser;
import com.backstage.mapper.SysUserMapper;
import com.backstage.service.testService;
import com.baomidou.framework.service.impl.SuperServiceImpl;

@Service
public class testServiceImpl extends SuperServiceImpl<SysUserMapper, SysUser> implements testService{

	@Autowired
	SysUserMapper sysUserMapper;
	
	public SysUser findById(String id) {
		
		return sysUserMapper.findById(id);
	}

	@Transactional
	public Integer insertByUser(SysUser sysUser) {
		/*Integer statu = sysUserMapper.insertByUser(sysUser);*/
		Integer statu = sysUserMapper.insertByUser(sysUser);
		int i = 1/0;
		return statu;
	}

}
